<template>
  <div class="test-news-manager">
    <div class="header">
      <h1>newsManager 组件测试页面</h1>
      <p>这是一个临时测试页面，用于查看 newsManager 组件的显示效果</p>
      <div class="nav-buttons">
        <el-button type="primary" @click="goToOriginal">查看原始页面</el-button>
        <el-button type="success" @click="goToLogin">登录系统</el-button>
      </div>
    </div>
    
    <!-- 直接引入 newsManager 组件 -->
    <div class="component-container">
      <news-manager />
    </div>
  </div>
</template>

<script>
import NewsManager from './systemSetting/newsManager.vue'

export default {
  name: 'TestNewsManager',
  components: {
    NewsManager
  },
  methods: {
    goToOriginal() {
      this.$router.push('/sys/information')
    },
    goToLogin() {
      this.$router.push('/login')
    }
  }
}
</script>

<style lang="scss" scoped>
.test-news-manager {
  padding: 20px;
  background: #f5f5f5;
  min-height: 100vh;
  
  .header {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    
    h1 {
      color: #333;
      margin: 0 0 10px 0;
      font-size: 24px;
    }
    
    p {
      color: #666;
      margin: 0 0 15px 0;
      font-size: 14px;
    }
    
    .nav-buttons {
      display: flex;
      gap: 10px;
    }
  }
  
  .component-container {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }
}
</style>
